package com.hzw.saas.api.rss.bo;

import cn.hutool.core.date.DatePattern;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.hzw.saas.common.config.bo.BaseBO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 期刊摘要

 * </p>
 *
 * @author sonam
 * @since 2021-06-30
 */
@Data
@Accessors(chain = true)
public class JournalArticleBO extends BaseBO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "rssId")
    private String rssId;

    @ApiModelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "文章标识")
    private String identifier;

    @ApiModelProperty(value = "文章来源")
    private String source;

    @DateTimeFormat(pattern = DatePattern.NORM_DATE_PATTERN)
    @JsonFormat(pattern = DatePattern.NORM_DATE_PATTERN)
    @ApiModelProperty(value = "文章发布日期")
    private Date pubDate;

    @ApiModelProperty(value = "文章描述")
    private String description;

    @ApiModelProperty(value = "文章主题")
    private String subject; //

    @ApiModelProperty(value = "文章链接")
    private String linkUrl; //

    @ApiModelProperty(value = "作者")
    private String author;

    @ApiModelProperty(value = "作者们")
    private List<String> authors;

    @ApiModelProperty(value = "hash值")
    private String digest;

    @ApiModelProperty(value = "description中第一张图片")
    private String image_title;

    @ApiModelProperty(value = "是否同步到es")
    private Integer esSync;
}
